home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Windows Expert
/
Windows Expert.iso
/
others
/
nwutils.zip
/
EN004.NW
< prev
next >
Wrap
Text File
|
1992-01-23
|
4KB
|
105 lines
EN004 Error and Greyed out Icons: Causes and Remedies
======================================================
If you've ever encountered a greyed out icon, or an "EN004:
NewWave is unable to find main window of this application"
error when closing down an application that has been bridged
into NewWave, here's what is happening and how to correct it.
CAUSE:
======
The errors are occurring because of a timing problem. Basically,
NewWave is looking for the window to close down but it runs out
of time. There are two main causes for this problem:
CAUSE 1: Your bridge builder object may have improper
(or missing) windows title or class names in the
"Specify Window Title" screen off of settings
step 1 (define application).
CAUSE 2: (Primarily for greyed out icons without an EN004
message). This lies in the way the Windows
application closes itself down. If the
terminating application sends a Windows POSTQUIT
message instead of a WM_DESTROY message, NewWave
believes that the application is still running
and thus keeps the icon greyed out.
RESOLUTION:
===========
These problems are resolved by deinstalling the problem tool
or object, making the appropriate changes to the application's
Bridge Builder object, and rebridging the application. The
procedure is as follows:
1) Exit and restart NewWave to "ungrey" the icon. It
may be necessary to delete the HPOMF.SDF file in
the \HPNWDATA subdirectory before restarting NewWave.
Please note that if you merely exit to a DOS prompt
to delete this file you won't be able to find it.
It is only created when you exit from NewWave.
2) Deinstall the problem object or tool. To do this,
you will go into the Settings menu of the NW Office
Window, then press "Manage Tools" or "Manage Masters".
You then should press CNTL+ALT+X (all three keys
at once). This will bring up a deinstall button.
Click once on the tool or object that you wish to
deinstall. Press the Deinstall button, and then
the OK button. Confirm the deinstallation.
3) Fix the problem by modifying your application's
Bridge Builder object (per the instructions later
in this document), and then reinstall your bridge.
If your first changes do not remedy the greyed
icon or EN004 problems, then try the other
recommendations, in combinations if necessary.
Bridge Changes
==============
Here is how to correct your bridge to work around the two
problem causes listed above:
For Cause 1 (EN004).....
1. Go to Define Application -- Specify Window Title and
change the title name. For some applications the
title name may be hyphenated; try deleting the hyphenated
portion. If this doesn't work, then leave the title name
blank. Be sure NOT to hit the Update pushbutton.
2. Go to Optional Advanced Functions - Extra Class Properties
and add (in CAPS):
Property Name: PROP_SEARCHWINDOW
Property Text: ####
(The default is 5000. Try #'s from 1000 up to
5000 in increments of 500. Setting the speed
lower speeds the polling up).
Choose Add to add the item & reinstall the bridge.
For cause 2 (greyed out icon).....
1. Go to Optional Advanced Functions - Extra Class Properties
and add (in CAPS):
Property Name: PROP_UNSUBCLASS
Property Text: 0010
Choose Add to add the item & re-install the bridge.
IF EACH CHANGE INDIVIDUALLY FAILS
=================================
Try deleting BOTH the window's title and class names from
the "Windows Class Title" screen of "Define Application",
AND add both the PROP_UNSUBCLASS and PROP_SEARCHWINDOW
extra class properties (and proper text) as outlined in the
above steps.